<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Pragma" content="no-cache"> 
	<meta http-equiv="Cache-Control" content="no-cache"> 
	<meta http-equiv="Expires" content="0"> 
	<title>FLOWMETER</title>
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/bootstrap/easyui.css">
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css">
	<script type="text/javascript" src="../js/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../js/extEasyUI.js?v=201305241044" charset="utf-8"></script>
	<script type="text/javascript" src="../js/extJquery.js?v=201305301341" charset="utf-8"></script>

	
	<script type="text/javascript">	

		function save(){
			
			$.messager.progress();
			
			$('#ftype').form('submit', {
				url:'../security/modify.do',
				success: function(data){
					$.messager.progress('close');	// hide progress bar while submit successfully
					var vet = eval('(' + data + ')');
					if(!vet.success) {
						parent.$.messager.alert('操作失败', vet.message);
					}
				}
			});
			
		}
		
		function reset(){
			$('#oldPassword').val("");
			$('#newPassword').val("");
			$('#newPassword2').val("");
		}
		
	</script>
	
	
</head>
<body>

	<div style="margin:10px 0;"></div>
	
	<div class="easyui-panel" title="修改登陆密码" style="width:600px">
	
		<div style="padding:5px 60px 5px 60px">

		    <form id="ftype" method="post">
		    	<table>
		    		<tr>
		    			<td>旧密码:</td>
		    			<td>
		    				<input id="oldPassword" name="oldPassword" type="password" value="">
						</td>
		    		</tr>
		    		<tr>
		    			<td>新密码:</td>
		    			<td>
		    				<input id="newPassword" name="newPassword" type="password" value="">
						</td>
		    		</tr>
		    		<tr>
		    			<td>新密码确认:</td>
		    			<td>
		    				<input id="newPassword2" name="newPassword2" type="password" value="">
						</td>
		    		</tr>		    			    		
		    	</table>
		    </form>
	    
	    </div>
	    
	    <div style="padding:5px 60px 5px 60px">
		
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width:80px" onclick="save()">应用</a>
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no'" style="width:80px" onclick="reset()">重置</a>
			
		</div>	
	    
	</div>	

</body>
</html>